package templatemethod.example;

/**
 * @author Chen Guang
 * @date 2019/4/8 0008 下午 17:53
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("学生甲：");
        AbstractTestPaper student1 = new TestPaperA();
        student1.testQuestion1();
        student1.testQuestion2();
        student1.testQuestion3();

        System.out.println("学生乙：");
        AbstractTestPaper student2 = new TestPaperB();
        student2.testQuestion1();
        student2.testQuestion2();
        student2.testQuestion3();
    }
}
